import { createApp } from "vue";
import App from "./App.vue";
// 引入 Normalize.css
import "normalize.css";
//引入全局样式
import "@/assets/global.scss"

import 'element-plus/dist/index.css';
//引入路由
import router from "./router/index"

// 中文语言显示
import ElementPlus from 'element-plus'
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'

//引入mock
import "@/mock/mockServer"
// import { getCurrentInstance } from 'vue'
//引入ElMessage
// import { ElMessage } from 'element-plus'
//为了避免在组件中，频繁使用ElMessage，将这边调用之后的message直接挂载到全局上
//后续组件上，就可以直接通过message来使用
// app.config.globalProperties

const app = createApp(App);
// app.config.globalProperties.message=ElMessage
//注册路由
app.use(router)
app.use(ElementPlus, {
    locale: zhCn,
})
app.mount("#app");
